package com.example.demo.mybatis.config;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author liyuncong
 * @version 1.0
 * @file MyabtisConfiguration
 * @brief MyabtisConfiguration
 * @details MyabtisConfiguration
 * @date 2022-11-10
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-11-10                  liyuncong          Created
 */
@Configuration
@MapperScan(basePackages = "com.example.demo.mybatis.mapper")
public class MybatisConfiguration {

//    @Bean
//    @ConditionalOnMissingBean(value = MybatisPlusInterceptor.class)
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        var interceptor = new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.POSTGRE_SQL));
//        return interceptor;
//    }
}
